<%
[['Inbox','inbox'],
 ['Next Action','next'],
 ['Waiting','waiting'],
 ['Sometime/Maybe','maybe'],
 ['Reference','ref'],
 ['Done','done']
].each { |text,state| %>
<a href="#" onclick="set_state('<%=state%>',<%=task.id%>)" class="tag <%if(task.state==state)then%>on<%end%>"><%= text %></a>
<%  } %>
